package day1218_4;
//day1218.T1
public class T1 {
    protected   int age=21;

    public static void main(String[] args) {
        T1 t=new T1();//1.  t=  new创建对象
        //2.用对象t打印年龄age
        System.out.println(t.age);
    } //protected修饰的成员变量或成员方法可以在本类中访问
}

